package edu.sctu.practice.zhengsenwen.test.test08;

/**
 * Created by zhengsenwen on 2015/11/12.
 */
public class Truck extends Vehicles {

    //编写Truck（卡车）类继承于Vehicles类，
//    增加float型成员属性load（载重），还应增加成员方法showTruck（在控制台显示卡车的信息），并编写构造方法。

    public Truck(String brand, String color) {
        super(brand, color);
    }

    public float load = 0.0f;

    public Truck(String brand, String color, float load) {
        super(brand, color);
        this.load = load;
    }

    public void showTruck(){
        System.out.println(brand);
        System.out.println(color);
        System.out.println(load);
    }
}
